package org.xshop.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.ibase4j.core.base.BaseModel;

/**
 * <p>
 * 商品评论
 * </p>
 *
 * @author ShenHuaJie
 * @since 2018-04-08
 */
@ApiModel("商品评论")
@TableName("t_goods_comment")
@SuppressWarnings("serial")
public class TGoodsComment extends BaseModel {

    @ApiModelProperty(value = "商品编号")
    @TableField("goods_id")
    private Long goodsId;
    @ApiModelProperty(value = "订单编号")
    @TableField("order_id")
    private Long orderId;
    @ApiModelProperty(value = "评论内容")
    @TableField("comment_")
    private String comment;
    @ApiModelProperty(value = "评分")
    @TableField("score_")
    private BigDecimal score;
    @ApiModelProperty(value = "图片")
    @TableField("image_url")
    private String imageUrl;
    @TableField("parent_id")
    private Long parentId;
    @TableField(exist = false)
    private String nickName;
    @TableField(exist = false)
    private String avatar;

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

}